<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<c:import url="/WEB-INF/module/head.jsp"/>

<body ng-app="blog" ng-controller="noticeController" ng-init="editInit()"
      class="hold-transition skin-blue sidebar-mini">

<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>公告<small>发布</small></h1>
    <ol class="breadcrumb">
        <li><a href="home.jsp"><i class="fa fa-dashboard"></i>首页</a></li>
        <li><a href="list_notice.jsp">公告</a></li>
        <li class="active">发公告</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-success">
                <div class="box-header">
                    <h3 class="box-title">基本信息
                        <small>Basic information</small>
                    </h3>
                    <!-- tools box -->
                    <div class="pull-right box-tools">
                        <button type="button" class="btn btn-success btn-sm" data-widget="collapse"
                                data-toggle="tooltip" title="Collapse">
                            <i class="fa fa-minus"></i></button>
                    </div>
                    <!-- /. tools -->
                </div>

                <div class="box-body">
                    <div class="form-group">
                        <label>标题</label>
                        <input ng-model="entity.title" type="text" class="form-control"
                               placeholder="请输入标题 ../style/ext.">
                    </div>
                    <div class="form-group">
                        <label>分类</label>
                        <select id="categoryId" ng-model="entity.categoryId" class="form-control select2"
                                style="width: 100%;">
                            <option value="">请选择分类</option>
                            <option ng-repeat="c in categoryList" value="{{c.id}}">{{c.name}}</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>排序</label>
                        <input ng-model="entity.serial" ng-init="entity.serial = 0" type="text" class="form-control"
                               placeholder="请输入排序号 ....">
                    </div>
                </div>
            </div>

            <div class="box box-info">
                <div class="box-header">
                    <h3 class="box-title">内容
                        <small>Enter article content</small>
                    </h3>
                    <!-- tools box -->
                    <div class="pull-right box-tools">
                        <button type="button" class="btn btn-info btn-sm" data-widget="collapse" data-toggle="tooltip"
                                title="Collapse">
                            <i class="fa fa-minus"></i></button>
                    </div>
                    <!-- /. tools -->
                </div>
                <div class="box-body pad">
                    <form>
                        <textarea ng-model="entity.content" id="content" rows="10" cols="80"></textarea>
                    </form>
                </div>
            </div>

            <div class="box box-danger">
                <div class="box-header">
                    <h3 class="box-title">操作
                        <small>Handle</small>
                    </h3>
                    <!-- tools box -->
                    <div class="pull-right box-tools">
                        <button type="button" class="btn btn-danger btn-sm" data-widget="collapse" data-toggle="tooltip"
                                title="Collapse">
                            <i class="fa fa-minus"></i></button>
                    </div>
                    <!-- /. tools -->
                </div>

                <div class="box-body">
                    <table class="table table-condensed text-center">
                        <tr>
                            <td style="border-width: 0px;">
                                <button ng-click="edit('list_notice.jsp')" type="button"
                                        class="btn btn-block btn-success">
                                    <font style="vertical-align: inherit;">
                                        保存
                                    </font>
                                </button>
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </div>
    <!-- /.row -->

</section>

<c:import url="/WEB-INF/module/js.jsp"/>


</body>
</html>
